package com.syeet.gulimall.product.feign;

import com.syeet.common.to.es.SkuEsModel;
import com.syeet.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author xhl
 * @date 2022/5/24
 */
@FeignClient(value = "gulimall-search")
public interface SearchFeignService {

    @PostMapping(value = "/search/save/product")
    R productUp(@RequestBody List<SkuEsModel> models);
}
